import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/IndexView.vue'),
    },
    {
      path: '/index',
      name: 'index',
      component: () => import('../views/IndexView.vue'),
    },
    {
      path: '/api-test',
      name: 'test',
      component: () => import('../views/ApiTestView.vue'),
    },
    {
      path: '/dlt/',
      name: 'dlt_layout',
      component: () => import('../views/dlt/LayoutView.vue'),
      children: [
        {
          path: '/dlt/wave',
          name: 'dlt_wave',
          component: () => import('../views/dlt/WaveView.vue')
        },
        {
          path: '/dlt/lighting',
          name: 'dlt_lighting',
          component: () => import('../views/dlt/LightingView.vue')
        },
        {
          path: '/dlt/firework',
          name: 'dlt_firework',
          component: () => import('../views/dlt/FireworkView.vue')
        },
        {
          path: '/dlt/history',
          name: 'dlt_history',
          component: () => import('../views/dlt/HistoryView.vue')
        },
        {
          path: '/dlt/xuanhao',
          name: 'dlt_xuanhao',
          component: () => import('../views/dlt/XuanhaoView.vue')
        },
        {
          path: '/dlt/h5',
          name: 'dlt_h5',
          component: () => import('../views/dlt/H5View.vue')
        },
      ]
    },
    // {
    //   path: '/ssq/',
    //   name: 'ssq_layout',
    //   component: () => import('../views/ssq/LayoutView.vue'),
    //   children: [
    //     {
    //       path: '/ssq/wave',
    //       name: 'ssq_wave',
    //       component: () => import('../views/ssq/WaveView.vue')
    //     },
    //     {
    //       path: '/ssq/lighting',
    //       name: 'ssq_lighting',
    //       component: () => import('../views/ssq/LightingView.vue')
    //     },
    //     {
    //       path: '/ssq/firework',
    //       name: 'ssq_firework',
    //       component: () => import('../views/ssq/FireworkView.vue')
    //     },
    //     {
    //       path: '/ssq/history',
    //       name: 'ssq_history',
    //       component: () => import('../views/ssq/HistoryView.vue')
    //     },
    //     {
    //       path: '/ssq/h5',
    //       name: 'ssq_h5',
    //       component: () => import('../views/ssq/H5View.vue')
    //     },
    //   ]
    // },
  ]
})

export default router
